<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<f:view>
	<h:head>
		<title>Carteira de Projetos</title>
		<h:outputStylesheet name="index.css" library="css" />
		<h:outputScript library="js" name="main.js" />
		<meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" />
	</h:head>

	<h:body>
		
		<h:form>

			<p:growl id="msg" life="5000" />

			<p:panel header="Digite usuário e senha" style="width:400px; margin-left:auto; margin-right:auto; margin-top:100px;">
				<h:panelGrid columns="2">
					<h:outputText value="Usuário:" />
					<p:inputText value="#{loginBean.usuario}" />
					<h:outputText value="Senha:" />
					<p:inputText value="#{loginBean.senha}" />
				</h:panelGrid>

				<p:commandButton action="#{loginBean.logar}" value="Entrar"
					update="msg" />
			</p:panel>

		</h:form>

	</h:body>
</f:view>

</html>